//
//  AuthenSampleImageModel.swift
//  kxf
//
//  Created by LNS2 on 2024/4/5.
//

import Foundation

class AuthenSampleImageModel {
    
    static let shareInstance = AuthenSampleImageModel()
    
    private init(){
        
    }
    
    //营业执照
    var lincenceSampleDescrip = ""
    var lincenceSampleImgUrl = ""
//    银行卡
    var bankCardSampleDescrip = ""
    var bankCardSampleImgUrl = ""
//    小微门店环境照
    var xiaoweiShopOnDescrip = ""
    var xiaoweiShopOnUmgUrl = ""
//    身份证正面
    var idCardFrontDescrip = ""
    var idCardFrontImgUrl = ""
//银行开户许可证照
    var bankCardXuKeSampleDescrip = ""
    var bankCardXuKeSampleUmgUrl = ""
//    个体和企业门店环境照
    var companySampleDescrip = ""
    var companySampleImgUrl = ""
//    手持身份证
    var idCardInHandSampleDescrip = ""
    var idCardInHandSampleImgUrl = ""
//    个体和企业店外环境照
    var companyOutSampleDescrip = ""
    var companyOutSampleImgUrl = ""
//    小微门头照
    var xiaoweiHeadSampleDescrip = ""
    var xiaoweiHeadSampleImgUrl = ""
//    小微收银台照
    var xiaoweiCashSampleDescrip = ""
    var xiaoweiCashSampleImgUrl = ""
//    个体和企业收银台照
    var companyCashSampleDescrip = ""
    var companyCashSampleImgUrl = ""
//    身份证反面照
    var idCardBackSampleDescrip = ""
    var idCardBackSampleImgUrl = ""
//    个体和企业 门头照
    var companyHeadSampleDescrip = ""
    var companyHeadSampleImgUrl = ""
    //门店实际经营地址定位 照
    var shopLocationSampleDescrip = ""
    var shopLocationSampleImgUrl = ""
    //结算证明  proofMchntImgPic
    var proofMchntSampleDescrip = ""
    var proofMchntSampleImgUrl = ""
    
    func dealSampleImg(dict:NSDictionary){
        let licenceDict = dict["licensePic"]as? NSDictionary ?? [:]
        self.lincenceSampleDescrip = licenceDict["describe"]as? String ?? ""
        self.lincenceSampleImgUrl = licenceDict["imageUrl"]as? String ?? ""
        
        let bankCardDict = dict["bankcardpic"]as? NSDictionary ?? [:]
        self.bankCardSampleDescrip = bankCardDict["describe"]as? String ?? ""
        self.bankCardSampleImgUrl = bankCardDict["imageUrl"]as? String ?? ""
        
        let xiaoweiShopOnDict = dict["xiaoweishopOnPic"]as? NSDictionary ?? [:]
        self.xiaoweiShopOnDescrip = xiaoweiShopOnDict["describe"]as? String ?? ""
        self.xiaoweiShopOnUmgUrl = xiaoweiShopOnDict["imageUrl"]as? String ?? ""
        
        let idCardFrontDict = dict["shenfengzhengpic"]as? NSDictionary ?? [:]
        self.idCardFrontDescrip = idCardFrontDict["describe"]as? String ?? ""
        self.idCardFrontImgUrl = idCardFrontDict["imageUrl"]as? String ?? ""
    
        let bankPassPicDict = dict["bankPassPic"]as? NSDictionary ?? [:]
        self.bankCardXuKeSampleDescrip = bankPassPicDict["describe"]as? String ?? ""
        self.bankCardXuKeSampleUmgUrl = bankPassPicDict["imageUrl"]as? String ?? ""
        
        let companyDict = dict["shopOnPic"]as? NSDictionary ?? [:]
        self.companySampleDescrip = companyDict["describe"]as? String ?? ""
        self.companySampleImgUrl = companyDict["imageUrl"]as? String ?? ""
        
        let idCardInHandDict = dict["holdingCardPic"]as? NSDictionary ?? [:]
        self.idCardInHandSampleDescrip = idCardInHandDict["describe"]as? String ?? ""
        self.idCardInHandSampleImgUrl = idCardInHandDict["imageUrl"]as? String ?? ""
        
        let companyOutDict = dict["shopOutPic"]as? NSDictionary ?? [:]
        self.companyOutSampleDescrip = companyOutDict["describe"]as? String ?? ""
        self.companyOutSampleImgUrl = companyOutDict["imageUrl"]as? String ?? ""
        
        let xiaoweishopHeadPicDict = dict["xiaoweishopHeadPic"]as? NSDictionary ?? [:]
        self.xiaoweiHeadSampleDescrip = xiaoweishopHeadPicDict["describe"]as? String ?? ""
        self.xiaoweiHeadSampleImgUrl = xiaoweishopHeadPicDict["imageUrl"]as? String ?? ""
        
        let xiaoweishopCashPicDict = dict["xiaoweishopCashPic"]as? NSDictionary ?? [:]
        self.xiaoweiCashSampleDescrip = xiaoweishopCashPicDict["describe"]as? String ?? ""
        self.xiaoweiCashSampleImgUrl = xiaoweishopCashPicDict["imageUrl"]as? String ?? ""
        
        let shopCashPicDict = dict["shopCashPic"]as? NSDictionary ?? [:]
        self.companyCashSampleDescrip = shopCashPicDict["describe"]as? String ?? ""
        self.companyCashSampleImgUrl = shopCashPicDict["imageUrl"]as? String ?? ""
        
        let shenfengfanpicDict = dict["shenfengfanpic"]as? NSDictionary ?? [:]
        self.idCardBackSampleDescrip = shenfengfanpicDict["describe"]as? String ?? ""
        self.idCardBackSampleImgUrl = shenfengfanpicDict["imageUrl"]as? String ?? ""
        
        let shopHeadPicDict = dict["shopHeadPic"]as? NSDictionary ?? [:]
        self.companyHeadSampleDescrip = shopHeadPicDict["describe"]as? String ?? ""
        self.companyHeadSampleImgUrl = shopHeadPicDict["imageUrl"]as? String ?? ""
        
        
        let shopLocationPicDict = dict["shopLocationPic"]as? NSDictionary ?? [:]
        self.shopLocationSampleDescrip = shopLocationPicDict["describe"]as? String ?? ""
        self.shopLocationSampleImgUrl = shopLocationPicDict["imageUrl"]as? String ?? ""
        
        
        let proofMchntImgPicDict = dict["proofMchntImgPic"]as? NSDictionary ?? [:]
        self.proofMchntSampleDescrip = proofMchntImgPicDict["describe"]as? String ?? ""
        self.proofMchntSampleImgUrl = proofMchntImgPicDict["imageUrl"]as? String ?? ""
    }
    
}
